package com.caiyigo.baihua.fetion.service;

import java.util.List;
import java.util.Map;
import java.util.concurrent.Future;

import com.caiyigo.baihua.entity.Xuesheng;
import com.caiyigo.baihua.fetion.Result;
import com.caiyigo.baihua.fetion.XueshengMap;
import com.caiyigo.baihua.fetion.dao.DaoFactory;
import com.caiyigo.baihua.fetion.dao.DbDao;
import com.caiyigo.baihua.fetion.dao.DbDaoImpl;

public class DbServiceImpl implements DbService {

	private DbDao dbDao;

	public DbServiceImpl() {
		dbDao = new DbDaoImpl();
	}

	@Override
	public List<Xuesheng> getXueshengsListFromDataBase(String serviceId) {
		// TODO Auto-generated method stub
		return dbDao.getXueshengsListFromDataBase(serviceId);
	}

	@Override
	public Map<String, String> getZdyList(String serviceId,
			String appendMessage, List<Xuesheng> xueshengsList) {
		// TODO Auto-generated method stub
		return dbDao.getZdyList(serviceId, appendMessage, xueshengsList);
	}

	@Override
	public Map<String, String> getZwList(String pici, String serviceId,
			String appendMessage, Map<String, Xuesheng> xueshengMapKeyAtZkz) {
		// TODO Auto-generated method stub
		return dbDao.getZwList(pici, serviceId, appendMessage,
				xueshengMapKeyAtZkz);
	}

	@Override
	public Map<String, String> getCjList(String pici, String serviceId,
			String appendMessage, Map<String, Xuesheng> xueshengMapKeyAtZkz) {
		// TODO Auto-generated method stub
		return dbDao.getCjList(pici, serviceId, appendMessage,
				xueshengMapKeyAtZkz);
	}

	public void updateSend(List<Future<Result>> resultList, boolean isZw,
			String pici,Map<String, Xuesheng>map) throws Exception {
		dbDao.updateSend(resultList, isZw, pici,map);
	}
}
